import { createRouter,createWebHashHistory, RouteRecordRaw} from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    name: "home",
    component:() => import ('../components/HelloWorld.vue')
  },
  {
    path: "/todo",
    name: "todo",
    component:() => import ('@/views/ToDoList.vue')
  }


]
export default createRouter({
  history: createWebHashHistory(), // hash:createWebHashHistory() or histroy: createWebHistory()
  routes: routes
})
